<%@ page import="com.summer.pojo.User" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>

<html>
<head>
    <meta charset="UTF-8"/>
    <title>图书后台管理</title>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/css/common.css"/>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/css/main.css"/>
    <script src="${pageContext.request.contextPath}/static/js/jquery-1.12.4.min.js" type="text/javascript"></script>
    <script src="${pageContext.request.contextPath}/static/js/layer/layer.js"></script>
</head>
<body>
    <%
    User user = (User) request.getSession().getAttribute("user");
%>
<div class="topbar-wrap white" >
    <div class="topbar-inner clearfix">
        <div class="topbar-logo-wrap clearfix">
            <h1 class="topbar-logo none"><a href="index.html" class="navbar-brand">后台管理</a></h1>
            <ul class="navbar-list clearfix">
                <li><a class="on" href="">首页</a></li>
                <li><a href="#" target="_blank">网站首页</a></li>
            </ul>
        </div>
        <div class="top-info-wrap">
            <ul class="top-info-list clearfix">
                <li><a href="#"><%=user.getUsername()%></a></li>
                <li><a href="${pageContext.request.contextPath}/adminupdateUserPS">修改密码</a></li>
                <li><a href="${pageContext.request.contextPath}/login/userout" onclick="exit()">退出</a></li>
            </ul>
        </div>
    </div>
</div>
<div class="container clearfix" id="mainDiv">
    <div class="sidebar-wrap">
        <div class="sidebar-title">
            <h1>菜单</h1>
        </div>
        <div class="sidebar-content">
            <ul class="sidebar-list">
                <li>
                    <a href="#"><i class="icon-font">&#xe018;</i>图书管理</a>
                    <ul class="sub-menu">
                        <li><a href="${pageContext.request.contextPath}/book/adminfindAllBook"><i class="icon-font">&#xe037;</i>查询图书</a></li>
                        <li><a href="${pageContext.request.contextPath}/adminAddBook"><i class="icon-font">&#xe017;</i>新增图书</a></li>
                    </ul>
                </li>
                <li>
                    <a href="#"><i class="icon-font">&#xe003;</i>用户管理</a>
                    <ul class="sub-menu">
                        <li><a href="/login/allUser"><i class="icon-font">&#xe005;</i>用户查询</a></li>
                        <li><a href="/adminAddUser"><i class="icon-font">&#xe008;</i>新增用户</a></li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>